home *** CD-ROM | disk | FTP | other *** search
- Path: oldfart.ecl.wustl.edu!news
- From: "Klaus L. Nordstrom" <kln@news.hpn.org>
- Newsgroups: comp.lang.c,comp.lang.c++
- Subject: Re: RANDOM NUMBER GENERATOR
- Date: 3 Jan 1996 22:53:22 GMT
- Organization: Harry Trueman National Park, Independence, MO.
- Message-ID: <4cf1d2$1ts@oldfart.ecl.wustl.edu>
- References: <ABg4lwmmK4@lh.ioffe.rssi.ru>
- NNTP-Posting-Host: dos10.cec.wustl.edu
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.2N (Windows; I; 16bit)
-
- "Eugene I Levin" <Levin@lh.ioffe.rssi.ru> wrote:
- >
- >Tom, you are RIGHT! The congruent generator which is employed in
- >rand() is the bad one! And everybody know that.
-
- If one uses <stdlib.h>, does one not automatically get access to
- srand48() and drand48()? These routines generates good quality random
- numbers with long periodicities.
-
- Also, you may wish to check "numerical Recipies in C", authored by
- Teukolsky and Press.
-
- -kln.
-
-